<?php 

    function init() {
        
    }      
    $strWSDLLink = "http://localhost:9080/OrderProcessService/OrderProcessPort?WSDL";
    $client = new SoapClient($strWSDLLink, array('trace' => 1));
    function order() {
        global $client;
        $res = $client->OrderProcessOperation(
            array(
                'request_id' => "R5",
                'product_id' => 'Nokia6600',
                'product_quantity' => 100,
                'status' => 'WAITING'
            )
        );
        echo "REQUEST: <textarea>".$client->__getLastRequest()."</textarea><br/>" ;
        echo "RESPONSE: <textarea>".$client->__getLastResponse()."</textarea><br/>" ;
        vardump($res);
    }
        
?>

<html>
<head>    
</head>
<body>
<center><h1>Web Service Test</h1></center>
<hr />

<?php
order();
?>
</body>
</html>

